<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			
			
			/*function f()
			{
				this.a=1;
				this.f=function f1()
				{
					alert(this.a);
				}
				
				f1();
				
			}
			
			var o = new f();*/
			
			
			/*function f()//原型链
			{
				this.a=1;
				this.f=function ()
				{
					alert(this.a);
				}
				
				this.f();
				
			}
			
			var o = new f();*/
			
			/*function f()
			{
				this.a=1;
				var ff=function ()
				{
					alert(this.a);//找不到a
				}
				
				ff();
				
			}
			
			var o = new f();*/
			
			
			function f()
			{
				this.a=1;
				var ff= ()=>//lambda表达式
				{
					alert(this.a);//找到a
				}
				
				ff();
				
			}
			
			var o = new f();
			
		</script>
	</body>
</html>
